import request from '@/server'

// 获得登录验证码
export const getLoginCodeApi = (codeKey?: string) => {
  return request.get({
    url: '/admin/home/captcha?codeKey=' + codeKey
  })
}

// 登录
export const loginApi = (data: any) => {
  return request.post({
    url: '/admin/home/login',
    data
  })
}

// 退出登录
export const exitLoginApi = () => {
  return request.get({
    url: '/admin/home/exitLogin'
  })
}
